package indi.woniu.service.impl;

import indi.woniu.entity.Paper;
import indi.woniu.entity.Student;
import indi.woniu.entity.TestGrade;
import indi.woniu.mapper.StudentDao;
import indi.woniu.service.StudentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class StudentServiceImpl implements StudentService {
    @Resource
    StudentDao studentdao;
    @Override
    public List<Student> findAll() {
        return studentdao.findAll();
    }

    @Override
    public List<TestGrade> showGradeByUserId(int userId) {
       return studentdao.showGradeByUserId(userId);
    }

    @Override
    public Map showAnswer(int paperId) {
        return studentdao.showAnswer(paperId);
    }
}
